<script setup lang="ts">
const emit = defineEmits(["myevent"]);
function sendEvent() {
  emit("myevent", "田七", 20);
}
</script>
<template>
  <input type="button" value="子组件按扭" @click="sendEvent" />
</template>
<style scoped></style>
